#
# Makefile for the Linux TIPC layer
#

obj-m := tipc.o

tipc-y += addr.o bcast.o bearer.o config.o \
	   core.o handler.o link.o discover.o msg.o  \
	   name_distr.o  subscr.o name_table.o net.o  \
	   netlink.o node.o node_subscr.o port.o ref.o  \
	   socket.o log.o eth_media.o

PWD := $(shell pwd)
KERNELDIR := /lib/modules/$(shell uname -r)/build 

build:
	make -C $(KERNELDIR) M=$(PWD) modules

clean:
	rm -fr *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions *.order *.symvers

depend .depend dep:
	cc $(CFLAGS) -M *.c > .depend


